import {
	defineStore
} from 'pinia';

export const postProps = defineStore('postProps', {
	state: () => {
		return {
			lid:'',
			dy1:'',
			dy2:'',
			leaderName:'',
			type:'',
			classify:'',
			postType:'0',
			postClassify2:''
		};
	},
	unistorage: true,
	actions: {
		set(lid,dy1,dy2){
			this.lid = lid;
			this.dy1 = dy1
			this.dy2 = dy2
		},
		setLeaderName(leaderName){
			this.leaderName = leaderName
		},
		setType(type){
			this.type = type
		},
		setClassify(classify){
			this.classify = classify
		},
		setPostType(postType){
			this.postType = postType
		},
		setPostClassify2(postClassify2){
			this.postClassify2 = postClassify2
		},
	}
});
